package com.demo.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: demo
 * @description:
 * @author: 陈程猿
 * @create: 2025-03-02 19:28
 **/


public class PostSaveInfoDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 帖子/文章ID，主键，自增
     */
    private Long postId;

    /**
     * 发帖/写文章用户ID，外键
     */
    private Long userId;

    /**
     * 帖子/文章标题
     */
    private String title;

    /**
     * 帖子/文章内容
     */
    private String content;


    /**
     * 状态：1正常、0已删除
     */
    private Integer status;


    /**
     * 文章类型：1-普通文章、2-教程、3-公告等
     */
    private Integer articleType;

    /**
     * 文章分类ID
     */
    private Long categoryId;

    /**
     * 文章标签，多个标签用逗号分隔
     */
    private String tags;





    private Integer isRecommend;

    /**
     * 文章摘要或简介
     */
    private String summary;


    /**
     * 是否为草稿：1-草稿、0-正式发布
     */
    private Integer isDraft;


    /**
     * 封面分类
     */
    private Integer coverType;

    /**
     * 封面路径
     */
    private String coverPath;

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getArticleType() {
        return articleType;
    }

    public void setArticleType(Integer articleType) {
        this.articleType = articleType;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Integer getIsDraft() {
        return isDraft;
    }

    public void setIsDraft(Integer isDraft) {
        this.isDraft = isDraft;
    }

    public Integer getCoverType() {
        return coverType;
    }

    public void setCoverType(Integer coverType) {
        this.coverType = coverType;
    }

    public String getCoverPath() {
        return coverPath;
    }

    public void setCoverPath(String coverPath) {
        this.coverPath = coverPath;
    }
}
